package com.sh.data.engine.domain.authority.model.mapper;

import com.sh.data.engine.domain.authority.model.domain.MenuDomain;
import com.sh.data.engine.repository.dao.authority.entity.MenuEntity;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

/**
 * @author: mengzheng.mhc
 * @date: 2024/6/25 13:35
 */
@Mapper(componentModel = "spring")
public interface MenuDomainMapper {

    @Mapping(target = "apiIds", ignore = true)
    MenuDomain map(MenuEntity menuEntity);

    List<MenuDomain> map(List<MenuEntity> menuEntities);
}
